<?php

function startElement($parser, $name, $attrs) {
    global $g_listaSMS, $g_elem;
    if ($name == 'S')
	$g_listaSMS [] = $attrs;
    $g_elem = $name;
    error_log("startElement".$name);
    error_log(var_export($attrs,true));
}

function endElement($parser, $name) {
    global $g_elem;
    $g_elem = null;
    error_log("endElement".$name);
}

function textData($parser, $text) {
    global $g_listaSMS, $g_elem;
//    if ($g_elem == 's') {
//	$g_books[count($g_books) - 1][$g_elem] = $text;
//    }
}
?>